package io.renren.common.rpc;

import io.renren.common.constants.enums.ResponseStatus;
import io.renren.common.exception.BusinessException;
import io.renren.modules.simida.dto.resp.UserHomePageRespDto;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Auther: miaoguoxin
 * @Date: 2019/11/17 19:34
 * @Description:
 */
@Slf4j
@Component
public class OutrestSimidaFallback implements OutrestSimidaFeignRpc {

    @Override
    public UserHomePageRespDto queryUserInfo(Long userId) {

        throw new BusinessException(ResponseStatus.ERROR);
    }

    @Override
    public ApiResult<Boolean> compensatePay(String tradeNo) {
        return null;
    }

    @Override
    public ApiResult<Boolean> matchUserDelay(Long userId) {
        return null;
    }

    @Override
    public ApiResult<Boolean> refreshAllConfig() {
        return null;
    }


//    @Override
//    public UserHomePageRespDto queryUserInfo(Long userId, JSONObject jsonObject) {
//        log.error("调用个人信息失败");
//        return null;
//    }
}
